#ifndef FLEETMOVE_HH_
# define FLEETMOVE_HH_
# include "Network.hh"
# include "GameMessage.hh"

/**
 * <game>
 *  <fleet_move>
 *      <id>azonosító</id>
 *      <dest>
 *          <x>cél x-koordináta</x>
 *          <y>cél y-koordináta</y>
 *      </dest>
 *  </fleet_move>
 * </game>
 */
class Network::FleetMove: public GameMessage {
    public: spFleetMove static construct(QDomElement const& message);

    public: u8 const id;
    public: Geom::Vector< f8 > const destination;

    public: FleetMove(u8 id, Geom::Vector< f8 > const& destination);

    public: virtual void process_on_server(XmlServerThread& thread);
    public: virtual QDomDocument to_xml() const;
};

#endif // ndef FLEETMOVE_HH_
